<?php

echo "<link href='theme/style.css' rel='stylesheet' type='text/css' />";

if(isset($_SESSION['userlogin']))
{
	$userlogin =	"<p>Welkom ".$_SESSION['userlogin']."</p>
						<p>- <a href='#'>Mijn Account</a><br />
						- <a href='#'>Mijn Winkelwagen</a><br />
						- <a href='login.php?logout'>Loguit!</a></p>";
}
else
{
	$userlogin =	"<form method='POST' action='login.php'>
					<table>
					<tr>
					<td>Gebruiksnaam:</td><td><input type='text' name='username' size='18'></td>
					</tr>
					<tr>
					<td>Wachtwoord:</td><td><input type='password' name='password' size='18'></td>
					</tr>
					<tr>
					<td><p><a href='register.php'><input type='button' value='Registreren'></a>&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td><center><input type='submit' name='userlogin' value='Login'></center></p></td>
					</tr>
					</table>
					</form>";
}

$navigation = "<div id='wrapper'>
				<div id='header'>
					<div id='logo'><img src='theme/img/logo.jpg' border='0' alt='DailyMall Supermarkt' /></div>
					<div id='login_menu'>
					<font style='font-size:12px;'><center>
					".$userlogin."
					</center></font>
					</div>
				</div>
				
				<div class='clear'></div>
				
				<div id='nav'>
					<div id='nav-links'>";
					
$contenthd = "		</div>
					<div id='searchbox'>
					<form method='GET' action='search.php'>
					<input type='text'name='product' size='28'/>
					<input type='submit' value='Zoeken'/>
					</form>	
					</div>
				</div>
				
				<div id='page-body'>
					<div id='content'>
						<div class='content-hd'>
							<div class='content-hd-txt'>";
											
$contentbd = "				</div>
						</div>
						<div class='content-bd'>
							<div class='content-bd-txt'>";
							
$menuhd = "					</div>
						</div>
					</div>
					<div class='menu'>
						<div class='menu-hd'>
							<div class='menu-hd-txt'>";
							
$menubd = "					</div>
						</div>
						<div class='menu-bd'>
							<div class='menu-bd-txt'>";					
$footer = "					</div>
						</div>
					</div>
					<div class='clear'></div>   
					<br />
						
				</div>
				
				<div id='footer'>
					<img src='theme/img/footer-txt.png' border='0' alt='&copy; DailyMall'/>
				</div>
			
			</div>";
			
			
?>
